import { getPropsList } from "../attr"
import { dateFormatOptions } from "../../lib/const"
const attr = ({dateFilterFieldList= []}) => [
  {
    type: "input",
    label: "标题",
    fieldName: "title",
    extraConfig: {
      className: "row",
    },
    dataType: String,
  },
  {
    type: "slider",
    label: "默认值",
    fieldName: "value",
    extraConfig: {
      className: "row",
    },
    dataType: Array,
  },
  {
    type: "select-group",
    label: "筛选字段",
    fieldName: "filterField",
    options: dateFilterFieldList,
    extraConfig: {
      className: "row",
    },
    dataType: String,
  },
  // {
  //   type: "date",
  //   label: "最小日期",
  //   fieldName: "minDate",
  //   extraConfig: {
  //     className: "row",
  //   },
  //   dataType: String,
  // },
  // {
  //   type: "date",
  //   label: "最大日期",
  //   fieldName: "maxDate",
  //   extraConfig: {
  //     className: "row",
  //   },
  //   dataType: String,
  // },
]
export function getProps(){
  return getPropsList(attr({}))
}

export default {
  attr,
  // isNoCommon: true
}


